import { observable, action, makeAutoObservable } from 'mobx';

class TestStore {
  @observable count:number = 0
  // 观察者模式 订阅发布
  constructor() {
    makeAutoObservable(this)
  }
  @action
  increase() {
      this.count += 1;
  }

  @action
  decrease() {
      this.count -= 1
  }
}
export default TestStore